OR 函数 (DAX) 您所在的位置:网站首页 or 和and OR 函数 (DAX)

OR 函数 (DAX)

2024-07-15 14:26| 来源: 网络整理| 查看: 265

OR 项目 04/26/2024

适用于:计算列计算表度量值视觉对象计算

检查某一个参数是否为 TRUE,如果是,则返回 TRUE。 如果两个参数均为 FALSE,此函数则返回 FALSE。

语法 OR(,) parameters 术语 定义 logical_1、logical_2 要测试的逻辑值。 返回值

一个布尔值。 如果这两个参数中的任意一个为 TRUE,此值则为 TRUE;如果两个参数均为 FALSE,此值则为 FALSE。

备注

DAX 中的 OR 函数只接受两 (2) 个参数。 如果需要对多个表达式执行 OR 操作,可以创建一系列计算,或者更好的方法是使用 OR 运算符 (||) 将它们全部联接在一个更简单的表达式中。

此函数会对参数求值,直至遇到第一个 TRUE 参数,然后返回 TRUE。

示例

下面的示例演示如何使用 OR 函数来获取属于 Circle of Excellence 的销售人员。 Circle of Excellence 会识别在“观光自行车”销售方面已达到超过一百万美元的销售额,或者在 2007 年的销售额超过两百五十万美元的人员。

IF( OR( CALCULATE(SUM('ResellerSales_USD'[SalesAmount_USD]), 'ProductSubcategory'[ProductSubcategoryName]="Touring Bikes") > 1000000 , CALCULATE(SUM('ResellerSales_USD'[SalesAmount_USD]), 'DateTime'[CalendarYear]=2007) > 2500000 ) , "Circle of Excellence" , "" )

返回

行标签 2005 2006 2007 2008 - 总计 Abbas、Syed E Alberts、Amy E Ansman-Wolfe、Pamela O Blythe、Michael G Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Campbell、David R Carson、Jillian Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Ito、Shu K Jiang、Stephen Y Mensa-Annan、Tete A Mitchell、Linda C Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Pak、Jae B Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Reiter、Tsvi Michael Saraiva、José Edvaldo Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Tsoflias、Lynn N Valdez、Rachel B Vargas、Garrett R Varkey Chudukatil、Ranjit R Circle of Excellence 总计 Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence Circle of Excellence 相关内容

逻辑函数



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有